package me.boot.common.data.enums;

import io.swagger.annotations.ApiModel;
import lombok.Getter;
import me.base.utils.enums.DbEnum;

/**
 * <p>
 * 实体注释中生成的类型枚举
 * 角色
 * </p>
 */
@Getter
@ApiModel("数据权限类型-枚举")
public enum DataScopeType implements DbEnum {

    //@formatter:off

    ALL                     (0, "不限制"),
    SELF                    (1, "个人"),
    THIS_LEVEL              (2, "本部门"),
    THIS_LEVEL_AND_BRANCH   (3, "本部门及所有下属部门"),
    CUSTOMIZE               (4, "自定义"),

    //@formatter:on
    ;


    private final Integer value;
    private final String label;

    DataScopeType(Integer value, String label) {
        this.value = value;
        this.label = label;
    }

}
